]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceThumbnails: Animate showing/hiding
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 16 Feb 2021 21:03:29 +0000 (22:03 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Feb 2021 00:13:02 +0000 (01:13 +0100)
commita73bea02e8d6ec3ed13dce6813f457b15f3da718
tree1c6b6e17afa986df1d1339c509257003b9a24a63
parentf2391796825b7966501e158efaf3b80a00a076b0
workspaceThumbnails: Animate showing/hiding

Right now the minimap only hides itself in case of a single static
workspace. That's not only an edge case, but also not expected to
change while the overview is visible, so changing the visibility
without a transition is fine.

However that is about to change, and we'll hide the minimap as well
when there are fewer than three workspaces. As that condition is
very much expected to change from within the overview, the transition
should be animated.

Implement that via a new :collapse-fraction property on ThumbnailsBox,
and use that to transition both the height of the box itself and the
scale of the individual thumbnails.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3739

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1696>
js/ui/overviewControls.js
js/ui/workspaceThumbnail.js